package com.yuq.sunrise.common.enums;
/**
 * @author:  AlnWick
 * @date:    2018/12/17 14:27
 *          异常枚举类型，需要后台进行维护。
 */
public enum ExceptionEnum {

    // 未知异常
    UNKNOWN_ERROR(-1,"UNKNOWN_ERROR"),
    // 成功
    SUCCESS(0,"SUCCESS")

    ;


    ExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private Integer code ;

    private String msg;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
